Repository navigation
Report and enforce existing alerts under --strict-blocking - #459
Conversation
Existing alerts for --strict-blocking are read from the new full scan through socketdev's fullscans.stream(). socketdev 3.6.2 merged alerts that share a type and severity on a package, so only the first CVE of each severity reached the CLI. The Existing alerts table and the EXISTING blocking issues count undercounted (3 instead of 8 in the repro), and when the first CVE of a group was resolved or triaged to monitor or ignore, the Block CVEs behind it were dropped and the run passed. socketdev 3.6.3 keys merged alerts on the advisory ID and keeps the most severe action. Pin it. The CLI's own consolidation already keeps the advisory ID (Issue.consolidation_key) and filters on error/warn before it dedupes, so no CLI logic changes. The new tests run the real FullScans.stream() over a canned response, so they fail if the pinned SDK collapses advisories again. Bumps the version to 2.13.1. uv.lock needs `uv lock` once socketdev 3.6.3 is published.
--strict-blocking
Full-scan mode with --enable-json, --enable-sarif or --enable-gitlab-security reads alerts through the same SDK stream, so those reports now list every advisory on a package too. Diff mode's existing alerts in the GitLab and FOSSA-format output change the same way.
socketdev 3.6.3 was released without the advisory dedupe fix, which now ships as 3.6.4. uv.lock still needs `uv lock` once 3.6.4 is published.
…eep-each-existing-advisory # Conflicts: # CHANGELOG.md # pyproject.toml
…eep-each-existing-advisory
…eep-each-existing-advisory # Conflicts: # CHANGELOG.md
2.13.2 was released from main, so this change needs the next patch version.
Load current alerts for added and updated packages in strict diff mode. Report findings omitted by the comparison as existing so a Block advisory that survives a version change still fails the run.
--strict-blocking--strict-blocking
PR SummaryMedium Risk Overview
Alert consolidation moves into Docs and tests cover policy-action precedence, GitLab vs JSON/SARIF population, and regression cases for version bumps, transitive introductions, and missing full-scan packages. Reviewed by Cursor Bugbot for commit 0bf1e33. Configure here. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
bugbot run |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 0bf1e33. Configure here.
Summary
--strict-blockingcounts distinct advisories on unchanged dependencies and checks findings that persist after a dependency version change. The Existing alerts table lists these findings at the current package version.Verification
twine checkpassed.addedorupdated, first scans, and missing scan data.Test organization results for SDK advisory deduplication
These runs compared the original CLI and the SDK fix on PR branches with no dependency changes. Raw counts come from the current full-scan response. Repeating the runs with the fix produced the same results.
The summary and exit status use all findings. If the GitHub comment reaches its size limit, it links to the complete report.
Public Changelog
--strict-blockingcounts distinct advisories on unchanged dependencies and checks Block findings that persist after a dependency version change.Fixes: CE-511
Fixes: CE-514
Refs: ASK-631